package net.ideapad.data;

import java.sql.Timestamp;
import java.util.Set;


/**
 * Idea entity. @author MyEclipse Persistence Tools
 */
public class Idea extends AbstractIdea implements java.io.Serializable {

	private String userName;
    // Constructors

    public String getUserName() {
		return userName;
	}


	public void setUserName(String userName) {
		this.userName = userName;
	}


	/** default constructor */
    public Idea() {
    }

    
    /** full constructor */
    public Idea(User user, Group group, String ideaName, String abstractText, String bodyText, Integer voteCount, Timestamp lastEdit, Set comments, Set votes) {
        super(user, group, ideaName, abstractText, bodyText, voteCount, lastEdit, comments, votes);
        this.userName = user.getUsername();
    }
   
}
